package com.monster.starter.exception.common;


import com.monster.common.Constant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 异常配置
 * @author kuang
 */
@Data
@Configuration("ExceptionConfigStarter")
@ConfigurationProperties(prefix = "monster.exception")
public class ExceptionConfig {
    /**
     * 日志异常的堆栈是否需要打印到日志
     */
    private boolean stack = true;
    /**
     * 异常默认的提示code
     */
    private String code = Constant.EXCEPTION_CODE;
    /**
     * 异常默认的提示信息
     */
    private String msg = Constant.EXCEPTION_MSG;
}
